package com.kjzy.api;

import com.kjzy.api.fallback.UserClientFallbackFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class FeignApiApplication {
    public static void main(String[] args) {
        SpringApplication.run(FeignApiApplication.class,args);
    }

    @Bean
    public UserClientFallbackFactory userClientFallbackFactory(){
        return new UserClientFallbackFactory();
    }
}
